<div class="container">
    <div class="row" >
        <div class="span12 blockGray">
            <div class="blockInner">
                 <?php
                if ($view->resp === true)
                {
                    echo '<div class="alert alert-success">';
                    echo 'Tu perfil ah sido modificado correctamente';
                    echo '</div>';
                }
                else if($view->error != false)
                {
                    echo '<div class="alert alert-error">';
                    echo $view->error;
                    echo '</div>';
                }
                ?>
                <h1>Perfil</h1>
                <div class="clear ui-widget ui-widget-content ui-corner-bottom">
                    <br/>
                    <form id="formProfileUser" method="post" action="index">
                        <table>
                            <tr>
                                <th>Nombre:</th>
                                <td><input type="text" id="firstName" name="firstName" value="<?php echo $view->user->getFirstName(); ?>"/></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>Apellido:</th>
                                <td><input type="text" id="lastName" name="lastName" value="<?php echo $view->user->getLastName(); ?>"/></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>Titulo:</th>
                                <td><input type="text" id="title" name="title" value="<?php echo $view->user->getTitle() != "" ? $view->user->getTitle() : ""; ?>"/></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>Nombre Comercial:</th>
                                <td><input type="text" id="commercialName" name="commercialName" value="<?php echo $view->user->getCommercialName() != "" ? $view->user->getCommercialName() : ""; ?>"/></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>Dia de Facturacion:</th>
                                <td><select name="dateInvoice" id="dateInvoice">
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_MONDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_MONDAY ?>" <?php echo $selected; ?>>Lunes</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_TUESDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_TUESDAY ?>" <?php echo $selected; ?>>Martes</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_WEDNESDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_WEDNESDAY ?>" <?php echo $selected; ?>>Miercoles</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_THURSDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_THURSDAY ?>" <?php echo $selected; ?>>Jueves</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_FRIDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_FRIDAY ?>" <?php echo $selected; ?>>Viernes</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_SATURDAR ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_SATURDAR ?>" <?php echo $selected; ?>>Sabado</option>
                                        <?php $selected = ($view->user->getDayInvoice() == DefaultDb_Entities_User::DAY_SUNDAY ) ? "selected = 'selected'" : "" ;?>
                                        <option value="<?php echo DefaultDb_Entities_User::DAY_SUNDAY ?>" <?php echo $selected; ?>>Domingo</option>
                                    </select></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>N&uacute;mero celular:</th>
                                <td><input type="text" id="cellPhone" name="cellPhone" value="<?php echo $view->user->getCellPhone(); ?>"/></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>N&uacute;mero local:</th>
                                <td><input type="text" id="localNumber" name="localNumber" value="<?php echo $view->user->getLocalNumber(); ?>"/></td>
                                <td></td>
                            </tr>
                        </table>
                        <input type="submit" value="Guardar"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>